void main() {
  hello();
  strTest();
  listTest();
  mapTest();
  baseTest();
}

void baseTest(){
  var num = 200~/11;
  print("num = $num");
}

void hello() {
  print("hello world");
  print('Hello flutter');
}

void strTest() {
  var str = "hello " "world";
  var str1 = 'hello ' 'world2';
  var str2 = "hello" ' world3';

  print(str);
  print(str1);
  print(str2);

  var sunhaoqian = '孙浩骞';

  print("My name is $sunhaoqian");

  print(
      "$sunhaoqian length is = ${sunhaoqian.length},isEmpty = ${sunhaoqian.isNotEmpty}");

  var sunhaokai = "孙浩凯";

  print("My name is $sunhaokai");
}

void listTest() {
  var list = ["apple", "banana"];
  print("list len = ${list.length}");
  list.add("value");
  print('list = $list');
  list.shuffle();
  print('list = $list');
  list.remove("apple");
  print('list = $list');
  list.forEach(print);
}

void mapTest() {
  Map map = {'name': 'sunhaoqian', 'age': 12};
  print('map = $map');

  map['name'] = "sunhaokai";
  map['age'] = 8;
  print('map = $map');

}
